Compare exchange autoreply message to template
Hi All,Im in trouble. I try to explain the steps:1. I create a template from an existing autoreply message (internalmessage)Get-MailboxAutoReplyConfiguration -identity user | select -expandproperty...
View Articlere create record
I got tis too please help dd-DnsServerResourceRecordA : Cannot process argument transformation on parameter 'IPv4Address'. Cannot convert...
View ArticleCode runs in ISE but not in powershell command window
I have created a script to check for java deadlocks as soon as they occur but it will only run correctly in the ISE. Any assistance to identify why would be appreciated. I have only written a couple of...
View ArticleAdd-WebConfigurationProperty for Failed Request Tracing Issue
I am writing the Failed Request Tracing script and I have everything working except for this one small hitch. No matter what I have tried, I cannot, via the script, make the value of ‘path’ anything...
View ArticleSet hidefromaddressbook to true for all users in OU
I am using this:Get-ADUser-filter *-searchbase "ou=you,ou=OU..."|Set-ADUser-replace @{msExchHideFromAddressLists=$true}I can do it for 1 person, but can do it for all users in the OU. Any ideas?Thank you
View Articlewindows 8 PowerShell script for disabling ALL USB devices "USB power...
I work for a company that uses Windows8 as a base platform for it's application. We're having issues with touch screen randomly losing touch for no reason at all with the ACER touch screens. We've...
View ArticlePowershell - Find registry key and output with hostname and status
Hi,I am trying to get results of computer name and status after an IF using powershell. Am not able to get this working. Please help.$result = @() $systems = get-content "C:\cb\systems.txt" foreach...
View ArticleHow to search a pid with service name and then task kill it
the situation is that my zeromq server can stop properly in development machine in debug directorysince we use pub and sub and it can not send termination request to itself,we have to wait for heart...
View ArticleGet Base64 encoded string of a web image
I can convert an image to base64 encoding, using [convert]::ToBase64String, but that only works with Get-Content as far as I can see.I want to get the base64 encoded string of an webimage, for example...
View Articlecreate/rename folder uppercase
If i create a folder in Powershell with:New-Item D:\TEST -type directory The name is all lowercase. How can i create a folder that the name is like i wrote it? And how can i rename a folder "test" to...
View ArticleDFSR commandlets aren't designed to take other credentials.
Hi, We deploy powershell with tools that use the system account. But the DFSR powershell commandlets aren't designed to take alternative credentials. I've attempted to utilize the system account but...
View Article$ADSI.comitchanges() - A constraint violation occurred
Hi, I'm trying to manage OU permission using powershell, I have $ace object created using following command:$ACE = New-Object System.DirectoryServices.ActiveDirectoryAccessRule...
View ArticleHow can I get a WorkSpaceId assigned to an Azure VM?
Hello guys, I'm trying to know if VMs in our Azure envirormer have assigned a workspaceId from azure monitoring, I'm using below script to get this, but some of the VMs have different name...
View ArticleHow do I choose a section for pulling a -Property value?
Hey all, I'm learning PowerShell and came across an obstacle I can't seem to overcome. I'm working on a script to determine the remaining lifetime on a workstation's DHCP lease. Here's my...
View Articledisable office365 hybridmode retention policy for few user using csv
hi i wan to disable retention policy for 1000 out of 2000 users using csv. any type of script and command would be great.
View ArticleGuidance for writing a Connect- Cmdlet
Hi gang,I'm considering writing a collection of PowerShell Cmdlets to manage instances of an online service, and since they all require an instance URL and a Token for authentication, I thought it'd...
View ArticleUpdate-DistributionGroupMember for external users
Hi,I'm trying to create a DL list with external users. I am able to add the email accounts to exchange online.The script works fine when I used Add-DistributionGroupMember. As the list will change, I...
View ArticleRun the Exchange command without importing Exchange Snap-in every single time
Hello Team,We have the following requirement:We would like to have a front-end webpage where we have the below fields:Enter the Secondary SMTP adddress:SubmitWhen the user clicks on SUBMIT, it could...
View ArticleSending workstations to NoOPPInstalled.txt file
I have a very tiny simple script (see below) checking all workstations inside my AbleToConnect.txt to see if the individual workstation has OPP installed in it or not. If it has OPP, it will do...
View ArticleGet MAC address of VM running in cluster
Hi,Im trying to write a script to get the MAC address of specific VM running in a FOC. any help will be appreciate it!
View Article