Search found 12 matches
- Fri May 03, 2013 9:56 am
- Forum: PowerShell
- Topic: How to run this script against a list of servers from a text
- Replies: 11
- Views: 10234
- Fri May 03, 2013 9:06 am
- Forum: PowerShell
- Topic: How to run this script against a list of servers from a text
- Replies: 11
- Views: 10234
Re: How to run this script against a list of servers from a
I've tried other scripts that I found on the net but nothing seems to work for me. The purpose of this script is to report on the Share and NTFS permissions of specific shares located on remote servers. The scripts that I've found either don't work, don't give me all of the info I need or only work ...
- Fri May 03, 2013 6:50 am
- Forum: PowerShell
- Topic: How to run this script against a list of servers from a text
- Replies: 11
- Views: 10234
Re: How to run this script against a list of servers from a
This part of the error: "Cannot find path 'D:\eXpress' because it does not exist"...tells me that the script is being run against the remote server in the servers.txt file because the eXpress share does exist on the remote server only and not on the computer where I am running the script...
- Fri May 03, 2013 4:54 am
- Forum: PowerShell
- Topic: How to run this script against a list of servers from a text
- Replies: 11
- Views: 10234
Re: How to run this script against a list of servers from a
That is correct I did not write this code and know little about scripting.
Thanks for your help.
Thanks for your help.
- Thu May 02, 2013 6:38 pm
- Forum: PowerShell
- Topic: How to run this script against a list of servers from a text
- Replies: 11
- Views: 10234
Re: How to run this script against a list of servers from a
Do you mean pass the parameter here? Function Get-AllShares{ $a = Get-WmiObject win32_share -ComputerName $Server -Filter "type=0" Return $a } # End Get-AllShares Function I seem to be getting some progress because the follwoing error is for shares that exist on the remote server and not t...
- Thu May 02, 2013 10:52 am
- Forum: PowerShell
- Topic: How to run this script against a list of servers from a text
- Replies: 11
- Views: 10234
How to run this script against a list of servers from a text
HI How can run the follwoing script against a list servers? I've tried a foreach loop and the get-content cmdlet. Also how can I filter two specific shares? Thanks Function Get-SharePermissions($ShareName){ $Share = Get-WmiObject win32_LogicalShareSecuritySetting -Filter "name='$ShareName'"...
- Mon Feb 04, 2013 6:25 am
- Forum: VBScript
- Topic: Trouble with error handling
- Replies: 1
- Views: 3216
Trouble with error handling
Hi I'm trying to install a registry key only if the registry key does not already exist but when I run the code the script installs the key regardless. CODE: '----------------------------------------------- On Error Resume Next 'open the file system object Set oFSO = CreateObject("Scripting.Fil...
- Thu Dec 20, 2012 7:37 am
- Forum: VBScript
- Topic: Script to search for multiple files on multiple servers remotely
- Replies: 2
- Views: 4104
Script to search for multiple files on multiple servers remotely
Hi For reason when I run the follwoing code some incorrect file paths are returned when I loop through the file names and servers. Output: Altiris0010CG02 Ping Successful... Altiris0010CG02ExpressImagesWindows7W7110108W7110108.002 = True Altiris0010CG02ExpressImagesWindows7W7110108W7110108.003 = Tru...
- Thu Jun 28, 2012 2:25 am
- Forum: PowerShell
- Topic: RichTextBox formatting
- Replies: 1
- Views: 1380
RichTextBox formatting
That did the trick. Thanks so much for your help!
Regards,
Tony
Regards,
Tony
- Thu Jun 28, 2012 1:03 am
- Forum: PowerShell
- Topic: RichTextBox formatting
- Replies: 1
- Views: 1380
RichTextBox formatting
Hi When I populate a rich textbox the columns won't line up. Here's my code: $Output=Get-Process | Out-String$TB_Output.Text = $Output Results: Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName ------- ------ ----- ----- ----- ------ -- ----------- 140 5 4484 9852 46 15.70 2940 Acrotray 128 4 1...