Link to home
Start Free TrialLog in
Avatar of ddd1234
ddd1234

asked on

Powershell Script error

Attached script and error.
Thanks
Script.txt
Error-Script.txt
Avatar of Raheman M. Abdul
Raheman M. Abdul
Flag of United Kingdom of Great Britain and Northern Ireland image

You need to import the module:
Add the following line at the top of your script.
Add-PSSnapin “Microsoft.EnterpriseManagement.OperationsManager.Client” -ErrorVariable errSnapin;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ddd1234
ddd1234

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ddd1234
ddd1234

ASKER

Thanks, it resolved the error