Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

All Scripts Stopped working

$
0
0

I had a bunch of scripts that I had working, but ran a windows update and now Powershell 3.0 doesn't run any of the scripts without errors. 

I spent all day Friday and Saturday building a Windows 2012 Standard Server, and two windows 7 workstaitons in a testing environment.   I could never get the scripts to work on the Windows 2012 Server, so was running it on a windows 7 system.   I noticed that the scripts stopped working a few days ago, so rebuilt the system to narrow down what could be causing this and identified it as one of the windows updates.

Is this a known issue?  I can setup my testing systems for remote login for viewing to verify.

All systems have had enabled-psremoting and all requirements to run scripts locally and against other systems, and all are in a private domain. 

The main part is that is stopped reading this line in all of the scripts, says the information is null: 

$Servers = Get-Content C:\Sirius-Solutions\Input\servers.txt  

But the content is still there, and reading the 3 test systems.  In all of the scripts, it's referring to this one line, such as

-Computername $Servers

If I change the $Servers to specific server names, but only one at a time, the script will work, however when I can get the scripts where I want, they will need to read a list of 50 servers.

Please let me know if this is a known issue, or just my environment that has been built 2 times in the last week to identify this issue.

Thanks


Viewing all articles
Browse latest Browse all 8583