Support Forums

Search found 10934 matches

by jvierra
Tue Jun 13, 2017 1:56 pm
Forum: PowerShell GUIs
Topic: format and display in htm
Replies: 7
Views: 121

Re: format and display in htm

Go back and look at the actual code that is failing. Somewhere there is a mistake. I suspect the whole script may have some simple issue that is not obvious but now that you have a base proof you should be able to find the mistake. Sometimes pasting to copies of the same code and only editing the fi...
by jvierra
Tue Jun 13, 2017 1:40 pm
Forum: PowerShell GUIs
Topic: Windows 10
Replies: 18
Views: 233

Re: Windows 10

Alexander, thanks for the tip. Yes it was in a personal folder. It seems to work now. jvierra when I use $global:cred = Get-Credential -Credential it brings up the credential login box but when I use the credentials for example Start-Process "C:\Program Files\Desktop\DesktopPowershellAPPS\RADI...
by jvierra
Tue Jun 13, 2017 1:32 pm
Forum: PowerShell GUIs
Topic: format and display in htm
Replies: 7
Views: 121

Re: format and display in htm

It works fine for me in PSS.
Try using this in a new PSQ file.

Code: Select all

get-WmiObject -class Win32_Share |
Select-Object Caption, path, name |
ConvertTo-HTML |
Out-File c:\Temp\shares.htm
Invoke-Expression C:\temp\shares.htm
by jvierra
Tue Jun 13, 2017 1:22 pm
Forum: PowerShell GUIs
Topic: Windows 10
Replies: 18
Views: 233

Re: Windows 10

What do you mean by it won't pass the credentials on?

I use this on Win 10 with no issues.
by jvierra
Tue Jun 13, 2017 10:46 am
Forum: Windows PowerShell
Topic: Network Adapter Disable
Replies: 5
Views: 1181

Re: Network Adapter Disable

The correct syntax would be like this: if($adapters = Get-WmiObject Win32_networkadapter -FIlter 'name like "%wi%"' -ComputerName $ComputerName){ foreach($adapter in $adapters){ Write-Host Disabling $adapter.Name -fore green $adapter.disable() } }else{ Write...
by jvierra
Mon Jun 12, 2017 10:39 pm
Forum: Windows PowerShell
Topic: Use of CSV file to pass arguments
Replies: 8
Views: 226

Re: Use of CSV file to pass arguments

Just send the form and the files. If you are trying to back up user data then you really want to us USMT which does all of this and will also restore it intact when needed. There hasn't been a need to script this for almost two decades. Find a tech in your organization or a consultant that is certif...
by jvierra
Mon Jun 12, 2017 10:19 pm
Forum: Windows PowerShell
Topic: Use of CSV file to pass arguments
Replies: 8
Views: 226

Re: Use of CSV file to pass arguments

You can create a file with RoboCopy that contains all settings and run that file whenever you need to repeat a task. :: :: Job Options : :: /JOB:jobname :: take parameters from the named JOB file. /SAVE:jobname :: SAVE parameters to the named job file /QUIT :: QUIT after processing command line (...
by jvierra
Mon Jun 12, 2017 9:40 pm
Forum: Windows PowerShell
Topic: Use of CSV file to pass arguments
Replies: 8
Views: 226

Re: Use of CSV file to pass arguments

I still don't see where a CSV file comes into this. What you posted is not a CSV file and how you would use it is unclear Yes, you can get a list of files or folders form a file but how you would use them would depend on what you are trying to copy and how. If you posted your code the question might...
by jvierra
Mon Jun 12, 2017 9:08 pm
Forum: Windows PowerShell
Topic: Use of CSV file to pass arguments
Replies: 8
Views: 226

Re: Use of CSV file to pass arguments

Your question is a bit vague. What is it that you are trying to ask?
by jvierra
Mon Jun 12, 2017 12:41 pm
Forum: PowerShell GUIs
Topic: Display last file in a directory
Replies: 14
Views: 148

Re: Display last file in a directory

The following RC command will log filenames as they are moved:

RoboCopy d:\test5 d:\test6 /L /NDL /NC /NS /NP /NJH /NJS

You can retrieve these names from the job.

Go to advanced search