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

How to move deleted files from shared folder to the specific shared folder...

I'm looking for a way that when a file is deleted from a shared folder, it moves to the folder instead of recycle bin. And the folder create based on the user name who has deleted that file. How can I...

View Article


Azure Az Powershell Module Crashes Powershell/Unresponsive

Apologies if this is not the correct forum, but was only one I could find related as it's powershellCurrently the new Azure Az Module here...

View Article


Extract the second line from a Text file from 100 servers

Hello Everyone,This is what I am trying to accomplish, we have 100 servers, and we have the same a TXT file in the same location, i want to extract the second line from that file.  I am writing a...

View Article

Move file from share file convert it to .txt then remove it

I am taking an excel report moving it from a share drive with a partial file name changing it to an txt file then renaming it than removing the one from citrix. Problem is the file is not changing to a...

View Article

Massive script to set-csuser -onpremlineURI tel:xxxxxxxxx

Good morning, I need a Powershell script to do this: - Check all AD users in a given Ou on-premise, which have a phone number set - For each of these users make a script that populates the set-csuser...

View Article


Image may be NSFW.
Clik here to view.

PowerShell DSC - Turning off all Proxy Settings (xProxySettings Resource)

Hello Everyone,I am trying to turn off all Proxy Settings in Internet Settings in my Configuration Script. no "Automatically Detect Settings", just turn everything off. i want to achieve the following...

View Article

MBAM Bitlocker error remove features reports

hello,can anybody give me adviced to removed MBAM features reports, because i cannot removed this feature .i use Microsoft Server 2016 and SQl 2016

View Article

Copy Certificate from Contact to User

Hey Guys, i've been struggeling to find a solution for a few days but nothing yet! maybe someone can help me figure this one out :)i have a user and a contact in an AD, both are the same person.the...

View Article


Get-ADUserResultantPasswordPolicy return nothing for users use Password...

While testing Get-ADUserResultantPasswordPolicy, I notice it returns nothing for users that are use nothing but the Password Settings fromDefault Domain Policy. But if the user has another password...

View Article


Mount disk and also create mount points

Hi All.I have a VM with a raw disk allocated to it. However I want to create a function which would create a drive and also mount point folders.Get-Disk | Where partitionstyle -eq ‘raw’...

View Article

Powershell

Hello All,Can any one suggest me which is the best tutorial to learn powershell scripting as i am new to powershell kindly someone suggest me on the same.....Thanks in advanceRegardsPavan

View Article

You cannot call a method on a null-valued expression.

$in = [string]$args $files = Get-ChildItem *.properties $fileExists = $false $dict = @{} foreach ($file in $files) { if ([System.IO.Path]::GetFileName($file) -eq $in) { $fileExists = $true $data =...

View Article

Getting list of VMs from a list of Hyper-V hosts.

Any idea would be appreciated on how to get the list of VM from a list of Hyper-V host stored in a CSV or a Text file using powershell.ThanksRoushan

View Article


Image may be NSFW.
Clik here to view.

Problem running Python scripts on PowerShell

I get this error when I try to run scripts in PowerShell. These scripts run fine in the command window. JohnB

View Article

What's the most efficient string concatenation method?

I guess this really isn't a question, but the result of a simple test. I wanted to see if there were significant differences between the various methods of string concatenation. It turns out there...

View Article


Azure sql server firewall rules report

I need to generate report of Azure SQL server firewall rules for all SQL servers present across all subscription. 

View Article

any way to reset a w3wp process if the CPU usage remains above a certain %...

a specific w3wp process is crashing IISthe following will help...we need to find a way to reset (taskkill) the w3wp process if its CPU usage remains above 90% for longer than 2 minutes. the w3wp must...

View Article


Count Child Items for AD Computer Objects

I am a PowerShell novice interested in using PowerShell to identify computers lacking the BitLocker recovery key in AD.  I have seen a number of scripts that purport to have this capability, but most...

View Article

trying to get value of server in the following registry setting

invoke-command -computer ottmsg004 -scriptblock {get-itemproperty -path HKLM:\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config}I get the followingExclude                            : {C:\Program...

View Article

Script for exporting O365 licenses

Hi,I am looking help in retrieving list of users (Importing from CSV or TXT File) assigned O365 licenses information. Pls help.Best Regards, Ranjit Singh

View Article
Browsing all 21975 articles
Browse latest View live


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