I just published PoshCAT 0.2 version and the changes are as follows:
· New Client Actions
o Desired Configuration Manager Cycle
o Application Machine Policy Cycle
o Application Global Evaluation Cycle
o Install ConfigMgr Client
o Get App-V Client Packages
o Get App-V Client Configuration
o Get App-V Client Version
o Enable App-V Client Package Scripts
o Get ConfigMgr Client Available Applications
o Get Applied Group Policies
o Refresh Group Policies
o Get Free Disk Space
· Alternate Credentials Support – you can specify only one account
· Active Directory Connector
· Better error handling
· Separate folder for reports
· Ability to remove multiple computers from computer list
You can donwload PoshCAT 0.2 version from here
Enjoy!
When I try to load collections from my SCCM server, I get the following exception:
Exception: Invalid parameter
ErrorID: GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
ScriptLineNumber: 618
Message: At C:…Start-PoshCAT.ps1:618 char:28
+ $RootFolders = Get-WmiObject -Namespace “RootSMSSite_$($SiteCodeQu …
I had a look to the specified line and made some test. The root cause is the evaluation of “RootSMSSite_$($SiteCodeQuery.SiteCode)”.
Running your script in debug mode, I can see that $SiteCodeQuery.SiteCode equals the expected value. But the whole above expresssion returns an error when evaluated. If I remplace the expression directly by the expected value “SITE_XXX”, remaining part of your tool works fine.
Any idea ?
Hi,
Good question. So SMS Provider location query does not fail, if I understand correctly ? Do you have only one SMS Provider and are you running it remotly or locally on CM server?
Best
1. Yes SMS Provider location query does not fail
2. I have 3 SMS Provider
3. For the above trial, I tried from my primary site server itself which is also one of my SMS provider
4. I just tried from a different server, same result
Now I see the issue. The problem is that you have multiple SMS Providers and it returns an Array object. I will try to fix it somehow.
Thanks!
[…] Plus d’information sur son blog : http://blog.coretech.dk/kaj/poshcat-0-2-version-released/ […]
Hi, I’m missing the wake-on-lan function which was really handy in the ClientActionsTool. Will this be added in a future release?
Best Regards
Rudy
Hi,
Yes that is on my list.
Best,
Kaido