Administrators Paul Posted March 14, 2017 Administrators Share Posted March 14, 2017 Hi, We've just published 14 new built-in scripts and more will be added soon. Please post here what scripts you'd like to see in the Pulseway automation module. -Paul Link to comment Share on other sites More sharing options...
ComputerConsulting Posted March 14, 2017 Share Posted March 14, 2017 I just tried the script that shows the defragmentation level on a Windows 7 64b. It failed. The term 'Optimize-Volume' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Program Files\Pulseway\automation_2174ba8a_0411_4575_b589_d5ff035323da.ps 1:1 char:16 + Optimize-Volume <<<< $pwd.drive.name -Analyze -verbos + CategoryInfo : ObjectNotFound: (Optimize-Volume:String) [], Com mandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 0 Exit Code Link to comment Share on other sites More sharing options...
Spicy Support Posted March 15, 2017 Share Posted March 15, 2017 Daft question, where are the scripts? Link to comment Share on other sites More sharing options...
andy0609 Posted April 5, 2017 Share Posted April 5, 2017 Can you please create a script to uninstall the agents? I would like to have it for when I am offboarding a user/company Link to comment Share on other sites More sharing options...
Administrators Paul Posted April 5, 2017 Author Administrators Share Posted April 5, 2017 Hi Andy, Try this PowerShell script that @Chris wrote a while ago: try { $app = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "Pulseway" } $app.Uninstall() Write-Host "Uninstallation completed successfully" } Catch { $ErrorMessage = $_.Exception.Message $FailedItem = $_.Exception.ItemName Write-Host "There was an error on $computername.`r`n$FailedItem`r`nMessage: $ErrorMessage" Break } -Paul andy0609 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now