Reply To: "Inventory Intervention" – Processor inventory script
This properties shows the number of physical PROCs “NumberOfProcessors”
View ArticleReply To: Schedule rolling reboots with service check & email?
I’ll need some time to analyze the whole batch file but this first response I will just try to give you the PowerShell equivalents to some of your commands. # TimeZone # Get-WMIObject Win32_TimeZone |...
View ArticleReply To: get Directory Size
Thanks Dave, this is more complicated command. I run base64 encoded command in PowerShell, then I paste it in my batch file, Then I run it as an administrator, but still doesn’t work. Please take a...
View ArticleReply To: get Directory Size
It’s hard to tell from the screenshot, but it looks like you’ve inserted at least one extra line break in the middle of the base-64 encoded command. That call to PowerShell.exe needs to all be on a...
View ArticleReply To: Schedule rolling reboots with service check & email?
look at using restart-computer with the -wait parameter – - that makes the process wait until the machine has rebooted. If you add the -For parameter as well you can tell the reboot process to check...
View ArticleDouble hop permissions?
I am troubleshooting what I think is a Kerberos double-hop permissions issue. Here’s the setup: Server1 = Windows Server 2008 R2 Client1 = Windows 7 The account context in use is the same account on...
View ArticleReply To: Double hop permissions?
Is the account you are using a domain account or a local account? With credSSP enabled have you tried accessing the folder on server1 directly rather than through the link? The other obvioius question...
View ArticleReply To: Double hop permissions?
You need to add the “-Authentication Credssp” argument to Enter-PSSession. It’s not enough to just enable that feature on the client and server; you also have to specify that as your connection...
View ArticleNeed to run .exe with parameters on multiple remote machines
I need help with a method to run a .exe with parameters for a silent install on multiple remote PC’s. If I was to run this executable manually on each PC it would look like: \\server\share\program.exe...
View ArticleReply To: Query for specific group membership, export to csv
I figured something out on this, no help needed.
View ArticleReply To: Invoke-Webrequest Powershell 2.0
Hi Dave, I have still been unable to get this to work. My complete code is below if you can assist. Param( [string]$serial, [string]$product, [string]$country = 'NO' ) $product = Get-WmiObject...
View ArticleReply To: Invoke-Webrequest Powershell 2.0
That’s a lot of code. What part isn’t working the way you expect?
View ArticleReply To: Invoke-Webrequest Powershell 2.0
I get PS C:\Scripts> .\HPWarrantyCheck-ps2.ps1 CZ23450QH9 646676-421 Registrating session… Exception calling “GetRequestStream” with “0″ argument(s): “The operation has timed out” At...
View ArticleReply To: "Download all files" error ?
If the archive of all scripts will be available, I guess that would be great workaround for most of us, tired of copy-pasting If it conforms with the rules, maybe you can make a single archive...
View ArticleDeleting a services with Get-CIM*
Hello everyone I’m reworking some of my cmdlets to use Get-Cim instead of Get-WMIobject. My issue is The Get-WmiObject way works. $TDOCservices = Get-WmiObject -Class win32_service -filter “Name LIKE...
View ArticleReply To: Deleting a services with Get-CIM*
Get-CimInstance returns an inert object that doesn’t have the WMI class methods available You will need to run as Get-CimInstance -ClassName win32_service -Filter “Name LIKE ‘%TDOC%’” |...
View ArticleReply To: Need to run .exe with parameters on multiple remote machines
Using Invoke-Command you can execute commands on other computers by passing the computer names to the -ComputerName parameter.
View ArticleReply To: Need to run .exe with parameters on multiple remote machines
Can you please give me an example? I have tried several iterations of Invoke-Command without success.
View Article