Questions tagged [powershell]

An interactive shell, scripting and programming language, and surrounding environment from Microsoft. Commonly used by system administrators managing Microsoft software (including Windows, Exchange, SharePoint, and cloud services Azure and Office 365), PowerShell is included by default with Windows, and takes over from previous languages such as VB Script.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Get-NetIPInterface property 'Dhcp' is 'Enabled' after setting static IP configuration with netsh

The Question Set a static IP configuration with netsh: netsh interface ipv4 set address name="Ethernet1" static 192.168.0.20 255.255.255.0 192.168.0.1 netsh interface ipv4 set dns name="...
0
votes
0answers
7 views

how to find recently joined computers in Active directory with PowerShell command?

how to find recently joined computers in Active directory with PowerShell command ?
1
vote
1answer
29 views

Powershell self-signed certifcate private key not exportable

Using Powershell, I'm attempting to create a self-signed ssl certificate with a private key that can be exported. I've read and followed various tutorials, however the end result is always that no ...
0
votes
1answer
36 views

How does one gracefully kill a process in Windows?

I know one can just go into task manager and kill a process; but like not ejecting your thumb drive before pulling it out of the socket, one should notify the process it's being killed first if ...
0
votes
1answer
19 views

Having Trouble with Exchange Archive Errors - 365 Hybrid

I work in a hybrid 365 environment. Someone made some changes to the archives for users' mailboxes and now I'm getting errors in 365 admin center when I look at an active user:image of error box I was ...
1
vote
0answers
27 views

Get-ChildItem | Copy-Item

Trying to decipher why the copy-item is not working as expected within my ps script. I am attempting to search my fileservers for any *.pst files on all attached/valid drives, then copy those .pst ...
0
votes
1answer
22 views

How to get properties for multiple users using Get-ADUser

I was trying to get info on multiple users using Get-ADUser but it doesn't like it. Can someone provide a tip on how to do this? Many Thanks Get-ADUser -Identity jdoe, jsmith, adoe, bdoe, cdoe -...
0
votes
0answers
16 views

Changing W10 user settings and local group policy by Powershell in a Workgroup

I have an environment where we have approx 200 W10 PCs in a Workgroup. They all have the same image, with the same local admin account and a single generic end user account. The end user account has ...
2
votes
1answer
19 views

Does MS Teams write to Event log?

I'd like to trigger a script action upon MS Teams client launch. My first guess was to hook it on an event in the Event log. However, I was unable to find if the app actually writes to the Windows ...
1
vote
0answers
14 views

Scheduled task with powershell script returns code 0, but it still running and have not executed code

I have a task scheduled to run a powershell script, that simply does not run properly. I've added the following arguments: -noprofile -executionpolicy unrestricted -noninteractive -Command ". '...
1
vote
0answers
22 views

Why is my PowerShell script terminating too quickly?

Hoping you can help me I have a very simple python script which sole purpose is to go through a load of excel workbooks and get the data and produce a single file from it. Script works great. I then ...
0
votes
0answers
16 views

How to automate backup of specific IIS Websites

I have several Windows Server VPSs (mostly 2012 R2 with IIS 8.5) and on each of them there are several Websites but not all of them are active and need backup. I need a tool if there exists any ...
0
votes
0answers
26 views

Script for making Inventory of fileserver drives before migration to Sharepoint

I'm a powershell beginner and I would like to write a script to create a complete inventory of our fileserver. I tried it with --> Get-ChildItem -Path X -Force -Recurse | Export-Csv -Path X -...
0
votes
0answers
44 views

Powershell run from Python returns copyright information

I am executing a powershell script using python subprocess module. subprocess.Popen(["powershell.exe","-ExecutionPolicy","bypass","-file","kishore_test.ps1&...
0
votes
0answers
30 views

How to remove IIS authorization rules using PowerShell?

I would like to remove the DENY verbs from my authorization rules in IIS:\Sites\Default Web Site\life\api. I am on Windows Server 2019 and IIS 10. I have tried Clear-WebConfiguration -Filter "/...

15 30 50 per page
1
2 3 4 5
252