Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Powerhsell 5 versions and builds

Hi Team,I know this is simple, but i was unable to find, the powershell release versions build numbers documents. Could anyone help with url linkNaveen Kumar

View Article


Script to rename Windows

Hi,Is it possible to rename Windows 8.1 computer without unjoin domain with a powershell script?Thanks,

View Article


Export Usergroup Membership Powershell

This is what im looking forward to get but it has been hard for me since im litteraly new in PowershellGroupAccountname group1 user1 group1 user2 group1 user3 group2 user4 group2 user5 group3 user6...

View Article

Image may be NSFW.
Clik here to view.

Do we have a windows powershell script to Display User Profile

Can this be scripted in Powershell to display all the user attributes?

View Article

PowerShell combining objects

In the following script I am attempting to pull some basic data from Exchange and combine the objects into a single output. I believe the problem is tied to the output assigned to my $Usage variable,...

View Article


Cluster Report Script Error

Hi GuysI`ve been looking for a powershell script to check windows failover cluster health checks/status and I`ve found one from gallery link but it`sparam($cluster_name, $path, $web_path); # Function...

View Article

Using the match feature throughan array

I've been trying to write a script and in a section of it, I need to compare names of users to a explicit list. So Powershell is presented with the names of all users on a specific system and I need to...

View Article

Appened to adjacent cell in CSV file

HI,I'm not great with powershell but it's what I know best so I'm trying to use it to do the following:I need to extract data like below from AD:$users = (import-csv "$path\users.csv").users Foreach...

View Article


New-Item : The given path's format is not supported - SOLVED

I have function for getting MicrosoftSubscriptionData from Partner Centerfunction Export-MicrosoftSubscriptionData {[CmdletBinding()]    param ( [Parameter(Mandatory=$true,ValueFromPipeline=$true)]...

View Article


How does Powershell Get multiple specified user properties using the...

How does Powershell Get multiple specified user properties using the get-aduser filterI need to get the email addresses of users a, b, c ,It needs to be obtained once in -fiter。Get-ADUser -Filter...

View Article

Remove i:0#.w|ad\ Prefix using PowerShell and TrimStart

I am trying to remove i:0#.w|ad\From accounts listed in the groups in SharePoint 2013. Some of our accounts start with ad, which I obviously want to preserve. However I cannot work out how to only trim...

View Article

Powershell Looping issue

Hi , I am learning PowerShell and newbie to PowerShell.Can I get some help on below.I created three files :TestfileBB-Thisisfile1223...

View Article

Task Scheduler PowerShell Script

I have a script that finds a specific process, if it is running, terminate, wait x seconds, run the program again. When I test in PowerShell, it works as designed. However, I add the script to Task...

View Article


Multiple creds with Start-Process

Hello,is it possible to initate DSA.msc with multiple credentials when working from a non Domain Admin account? One set of creds to run the process and another to open DSA.msc. Here is what I have so...

View Article

Compare Objects and keep additional columns

I'm trying to figure out the best way to accomplish this task. Any guidance is much appreciated! I have 2 CSV files. The 1st file has 2 columns (Computer & Email). The 2nd file has 1 column...

View Article


Import schedule task in windows server 2016

I have around 200 .xml task which I copied from old windows 2008 server that I need to import with same name and it also use service account and password.  I tried below script and its not working in...

View Article

Get list of former employees using outlook who left organisation

I have to get list of former employees from outlook, is there any api where I will search fname.lname@domain.com, will get the user exists or not in company or status as presence unknown or employee...

View Article


While Trying to send Powershell Data to php form getting the Error: You...

Hi,I am trying to send the data of powershell to the registration form in php it is showing an errorCode:Add-Type -AssemblyName Microsoft.VisualBasic $orderID= hostname $orderID1= (get-wmiobject -Class...

View Article

Form Textbox text | Get-Content

Need some support with PS1 form, i have develop form with textbox and dialog for text file selection, now i'm trying to pass textbox content to get-content command to get all info in text file, Example...

View Article

using color with Read-Host

Is there a way to use -foregroundcolor with Read-Host?In the below example, I would like to change the color of "[quit]", but leave all other text at the default color:$input = Read-Host "Select an...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>