Exchage delete by quota
Hi allI need help to built a porweshell script using EWS API Need to check mailbox sizes in a Database and if the mailbox reach issue warning limite delete items order by1st message class , for example...
View ArticleCheck powershell version and print message
Hello All,I am writing a script which will check powershell version on multiple servers and print output. If the powershell version is 3, it should print ready other wise not ready. I have below...
View ArticlePowershell - How to acknowledge vCenter datastore alarms using powercli
I need a powershell script which will acknowledge any datastore alarms which are unacknowledged in vcenter, but I haven't the first clue how to go about this (I dont think set-datastore can do this but...
View ArticleNo output to console from script
Hello, for my slick new laptop with Windows 10 on it I am going to compile one simple PS script for verifying checksum of downloaded file. The problem is the script's Write-Output, Write-Host, Echo do...
View ArticlePlease help me to understand powershell script with IF statement in it
Well this is the script:http://techibee.com/powershell/get-cpu-utilization-of-a-computer-using-powershell/996But I am not exactly sure if I understand all the logic in it correctly.My assumption is...
View Articledelete all restorepoints
hi, i'm looking for a script to delete all restorepoints, i fond this https://gallery.technet.microsoft.com/scriptcenter/Script-to-delete-System-4960775a but it's only for older than 14 daysthanks
View ArticlePowershell logging not working
Hi All,I have created service to remotely start service.This code create a blank log file. i want to write output to the file.Here is my code-############################Define Server & Services...
View ArticleRename first 4 charators of every file in folder
Hey hoping someone can help?I have been looking for a script that can copy all files form a directory and rename the first 4 characters of every file within the new folder.Copy from C:\ORGDestination...
View ArticleFormat PowerShell Code
Hi All,I am currently using the PowerShell ISE to write PowerShell scripts at work.Is there anyway I can format the code to make it more easier to read? In Visual Studio it is easy to format any C#...
View ArticleWhat version of WMF am i running
Hi all. I have a 2012 R2 Datacenter VM in my lab.I want to install WMF V5 so that I can do a MVA course on line however when I try to install WMF 5 I get a generic answer saying it is not for this...
View Articleretrieve number from webpage - Why the code is not working?
Hi,I would like to know how to get the number below "781078553199". See below the HTML body for your reference.javascript:OpenWindow('../../pdf_pub/781078553199.pdf','PDF','700','500','yes')See my code...
View ArticlePScredential class is not storing the credentials provided in script
Dear All, I am trying to copy the text file “1.txt” to remote share location using start-bitstransfer. I want to copy using a service account that has modify permission on remote share. Below is the...
View ArticleExecute Multiple Powershell Scripts Simultaneously
Hello - I have over a dozen+ powershell scripts on a server which I need to execute all of them simultaneously. How do I go about doing this? I also want to schedule this execution using task...
View ArticleCommand Get-VirtualExent on Windows Server 2016 not found
Hello,I uesed command Get-PhysicalExent but it raise error: Get-PhysicalExtent -PhysicalDisk (Get-PhysicalDisk -FriendlyName "SEAGATE ST1000NM0045") Get-PhysicalExtent : The term 'Get-PhysicalExtent'...
View ArticleMultiple Software Uninstaller Script
Hi,I have created uninstall Powershell script for multiple software , So, i want to know which command capture background process and where i have to put. (log file or output file ) # Remove all tool...
View ArticlePowershell - Running an Msi on a remote computer
What im doing is writing a script which takes the size of an MSI file via its -FilePath and then compares it to the C:\ Drive to see if there is enough space to install. I have also added the Parameter...
View ArticleService types and platform supported by powershell?
which platforms support the programs made in powershell and which type of programs can be developed in it?
View ArticleCan't create user inside other 2nd tier OU
Hi!I've got an OU o365.local/countries/US and trying to add the user thereNew-ADUser -Name "User Name" -SamAccountName "UserName@o365.local" -UserPrincipalName "UserName@o365.local" -DisplayName "User...
View ArticlePowershell Function Export CSV
Started writing the powershell program and encountering an issue while extracting output in CSV using function. when we tried to extract out-file, the output is prefect , when we use export-csv the...
View ArticleReflection and Type invocation issues when using Enum type from the...
Hello,I was trying to solve a simple Convert DOTX to DOCX question here, and found out that initial script that used Enum.Parse method to access WdSaveFormat and WdSaveOptions enumerations from the...
View Article