Passing variable to -Identity param
Hello I want to pass multiple group names in the -Identity param for Get _ADGroupMember. I tried many others ways but it did not work out.I have $groupnames @() with 7-8 elements in it. I want to use...
View ArticleChange Printer IP address
Hi allI have a list of 700 printers I need to change an IP address for. I have a CSV file I am using but no luck. Both the old and new ip are in the tableWhat am I doing wrong?$PrinterTable =...
View ArticleGet Network Hops without Test-NetConnection
I need to deploy a script that will ping various IPs and choose to connect with the closest one based on hop count. I've seen where Test-NetConnection can do this quite easily but many of my computers...
View ArticleExchange Powershell mailbox orginization script
Hey all, I am trying to set up some automated orginization for my journaling mailbox. What I would like to do is have some script that will create a subfolder based on year, then subfolders based on...
View ArticleReport with all Computers + last logged on user + User OU
I've been looking high and low for this, a report that's sounds easy enough to take out but it seems I can only get either Computer informationor User information, not both.Is there a genious out there...
View ArticleMoving Files while copying the folder structure
I need help getting what I think may be a fairly simple script.I have a folder structure with folders within. Each folder has a number of files with a wide range of modification dates.I need to move...
View ArticlePowershell GUI Datagridview items to a combobox Question
Hello,I am working on a powershell GUI project and have a datagridview with data i pulled from SQL that part works.What i want to do it get a rows of a column to show in a combobox for selection.Later...
View ArticleCannot run WinRM or Powershell against servers that have SPN's set up
When we try to run a invoke-command against our servers (we have dozens) that have SPN's set up for CRM, SSRS and other apps we get the error below.If we remove the SPN's from AD, we can run remote PS...
View ArticleDoes ConvertFrom-Json parser maintain the sequence of array elements...
Hi,At a high level, I am working on building a utility where-in the overall operation and granular tasks to be performed is driven by a JSON file. A group of tasks is maintained as a JSON array and it...
View ArticleAssigning permissions to folders via powershell
Hi experts,I am trying to assign modify permission to folders and files within a folder recursively using PowerShell. However, I am getting lot of these errors. Please advise. Set-Acl : The security...
View ArticleCannot remove SMB share mappings created with New-SmbGlobalMapping
$secpasswd = ConvertTo-SecureString PASSWORD -AsPlainText -Force; $creds = New-Object System.Management.Automation.PSCredential ("AUTH\Admin", $secpasswd); New-SmbGlobalMapping -RemotePath...
View ArticleGroup policy for MDM enrollment not getting effected
Hi I am trying to create an auto enrollment for my windows 10 desktops into Intune,I have already managed to build all the supported infrastructure and able to register any windows system in our...
View ArticleApply Results from a Group to Set-MailboxSearch
-SourceMailboxes parameter wants the values to be like "user@domain.com","user2@domain.com","user3@domain.com" any way I can achieve this?Or rather than get the members of a group, get all mail enabled...
View ArticleOutput is not complete Find-AdmPwdExtendedRights -Identity
Hi,I am executing the below command.Command 1 : Find-AdmPwdExtendedRights -Identity "OU=IN-Chennai,DC=constoso,DC=com" Output is like belowNot able to see all the details and .... (See the GREEN...
View ArticleUnzip GZ files using Powershell
I have Windows 2008 Server with some GZ type files in a folder. I would like to script unzipping them using Powershell, can someone tell me if this is possible and how I would do it? The folder is...
View ArticlePowershell script to list all mountpoints
Hello allI'm trying to build a script to list all mountpoints in a windows 2016 server, but my problem is cant had the disk id that is viewed in disk manager.$TotalGB =...
View Articleis it possible to create a command that runs a script
I'm new to powershell so this is probably very easy. I have a script which I want to run by executing "audit". Is it possible to register custom commands like that?Thanks!Senior .NET Developer
View ArticleNeed help with script to export shared mailbox full access permissions and...
Pretty much every shared mailbox we have in our environment has a security group assigned to it that is the same name except starting with SG_. I'm looking to have a script that can parse through all...
View ArticleGet folder size of a list of folders and export to Excel
Hi, could you see what i am doing wrong, with export to excel. I have a list of folders, I want to capture the size of the folders and output it to CSV. $Folders = Get-Content D:\folders.txt Foreach...
View Article