Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

Powershell watch output reboot when matched

Out of curiosity how could one create at the end of a script a running command every 60 seconds that displays an output of information, and when the output matches a defined string the computer would...

View Article


Getting ACL,Owner into a CSV to modify it

$rootfolder = Get-ChildItem -Path \server\user_home_root_folder foreach ($userfolder in $rootfolder) { $userfolder.FullName get-acl $userfolder.FullName | foreach {write-host "The owner is : "...

View Article


find an replace registry key

Hello all,I want to changes regkey values but for each device the location of registry is...

View Article

Return "Object not found" for accounts that are not found AD

I have many scripts that follow the same format to export info into a spreadsheet. I hope to get some assistance with returning lines for when an object is not found. In this particular situation - I...

View Article

Script help-Remove all versions of office but leave Skype

Hi team, found a script referenced in this thread, https://community.spiceworks.com/topic/1390477-script-to-uninstall-all-versions-of-office and it works well. My issue is, I want it to leave Skype...

View Article


Help creating powershell script with gui

I'm totally new to powershell. I have watched some video's and I just don't have the free time to learn what I need to get this done. I was hoping someone has something similar they would like to share...

View Article

File Hash SHA256 Output

Hello All,I would like to create a script that will show me all the SHA256 Hashes for all files within a folder. I also want to include the file modify date. as another column within my output.Any help...

View Article

Powershell - Problems starting service on remote computer

Ok, I'm stuck. I am trying to check if a service is running on a remote machine, and my script is able to tell if the service is running on the remote machine or if it is stopped. But it cannot start...

View Article


Exchange online 0365 - Powershell resource permissions

Hi theregood day. i am fairly new to PS, but have come up against an issue which i wondering if PS could help. We have a bunch of resources (rooms) which have to be bookable by domain users and...

View Article


Input to work on certain commands

I have a script which runs as a menu for certain IT users to perform Exchange tasks. Simple ones like added to mailboxes etc. This all works fine however i was having an issue with certain one running....

View Article

Question related to WMI

Hello,I am new to Power Shell , and I try to learn its syntax and functionalities.I am trying to understand the Get_WmiObject syntax and usage from the Microsoft web site...

View Article

Powershell File Copy with Today Date, then move into another folder

Copy-Item -Path '\\192.168.3.110\Backup\PoD\Backup\2019-11\*.pdf' -Destination D:\PODI could copy like that. but I would like to copy only today . Could someone help me ??

View Article

Searching Emails Throughout an Agency Sent to a Specific Domain

Good Afternoon!I have a PowerShell command that I am trying to run to gather up some emails from our organization to a specific email domain. The script...

View Article


Sync User data from CSV file to SharePoint Online List

I am trying to sync a on-premise AD users properties, i.e. full name, email, mobile phone, to an SharePoint online list, to create an employee directory. I do not have full admin access to the O365...

View Article

How to use DateTime in Powershell for Scheduled Tasks

I tried using both New-ScheduledTaskTrigger -At "2019-10-01T05:00:00Z" -Once and New-ScheduledTaskTrigger -Once -At "8/31/2018 8:56:57 AM" in the below form, but both led to a failure in the script...

View Article


PS Script to remove unwanted VPN connections and keeps the allowed ones

Hi,We have 500+ users and they were allowed to add their own VPN connections.Looking for a script that can be pushed by group policy in a way that it scans all VPN connections, removes all of them...

View Article

Powershell

Hi team,I am looking for script to get members report  from Active directory group. I have around 200 group in my list. How i can run this scrip and get report for each ACLsFollowing script i used for...

View Article


I cannot delete a file using an enviroment variable

Background: I want a script to run for new users and only once so I made a very short cmd the starts a powershell script that creates a shortcut that points to a cmd that deletes 3 folders if there is...

View Article

Find all different file extensions

Hello spiceheads,I need to create a file that contains each file extension we have on our fileservers.I wrote a simple .ps one liner to find them and Out-file them int extensions.txt and it works...

View Article

PowerShell 7 Preview 6 released

You can read the blog about the release here: https://devblogs.microsoft.com/powershell/powershell-7-preview-6/This is the last preview before a Release Candidate and there will be no major changes or...

View Article
Browsing all 15370 articles
Browse latest View live


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