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

cut -d ' ' -f7 test.tx

Hi all,can anyone please help the below linux command can be implement in powershell scriptcut -d ' ' -f7  test.txt | cut  -c 1-6 Please help asap

View Article


Preserving Folder Structure When Copying Files Monitored with...

Hey Guys - I'm writing a script which among other things monitors a specific share (including sub-folders) and when a change of any file is detected, it should copy the change to a 2nd share.  The...

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

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 Article

Issues writing CSV file(s) to Blobstorage log-export container after first...

I am trying to log some stuff from the Azure Site Recovery replication proces into Log Analytcs, into Blob storage (reading this with Power BI after).After setting everything up and fixing it, it...

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

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

Need to rename files based on specific string within the current name

I have a large list of image files that look like:78103OW-1-newcolor.jpg 78103OW-1-sandind.jpg 78103OW-2-sandind.jpg 78103OW-3-sandind.jpg I want to move the color to the front of the string (and...

View Article


Using MS-Edge to replace IE11

I has been using Powershell 5 to work and manage webpages by something like below. Because IE seems being out of date. I am wondering if I can use MS-Edge instead. Does new version of Powershell has...

View Article


Editing subsection of text in visio via powershell

I'm wondering if this i even possibleCurrently I have a script to create a visio drawing relevant portions of the text being used are:$application = New-Object -ComObject Visio.Application...

View Article

open IE tab as current

When using the blow, it will open Google.com in a new tab but not current page. I need to set it as current when open it in a new tab.  Is there a way to do that? Thanks.$ie = New-Object -com...

View Article

nested submenu in contextstipmenu

hello everyonei am experimenting with ContextMenuStrip in windows forms for powershell $contextMenuStrip1 = New-Object System.Windows.Forms.ContextMenuStrip #creation element1 of menu...

View Article

accounts script

Guys, I need to create a powershell script to create users and add them to a specific group based on the last 3 characters of their username, is there a way to do this or use a group policy to enable...

View Article


AD Migration with Local Profiles.

Im trying to build a script that allow me to get User1@targetdomain.com into User1@sourcedomain.com local profile folders, How can i accomplish that?Note. Computer is already migrated, I just need that...

View Article

A script that gives leaders mail on the things they are in charge off. (Im...

I want to make a script that gives leaders an email on the things that they are in charge off. This most likely have to have some connection to AD? Pretty new to this so any tips is highly appreciated.

View Article


ExpiryDate for groupMember

Hi I try to display my groupmember's expiry date when i try this i've got no result Get-ADuser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False -and PasswordLastSet -gt 0 } –Properties...

View Article

Not being able to save files based on Dates prompted

Hi guys, Im having trouble trying to save reports based on dates prompted as in the file name does not show up in Temp folder at all. (already created)[DateTime]$Date1 = Read-Host "Enter the first...

View Article


How to restart SSRS using Powershell?

Hi!I am trying to restart SSRS using powershell. When I run 'Get-Service'  I can see the service is called "ReportServer$POCDB".I am trying to run the following:Get-Service "ReportServer$POCDB" |...

View Article

Delete-Mailbox permission to delete all users with Full Access that are -ne...

Hello, I am trying to clear down 30 shared mailboxes in O365, when i remove a user from full access and save, they come right back.I have tried deleting a single user with PS and they didn't return so...

View Article

Copy multiple paths file on a remote computer by same domain powershell

Hey guys,I need to copy the user folder such as Favorites, Documents and Desktop that are located in the old PC in to new user PC to same destination using PowerShell. The users are in the same domain....

View Article
Browsing all 21975 articles
Browse latest View live


Latest Images

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