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

Why is my variable blank after an import?

I have a CSV file filled with email addresses.  When I run the script, I get the error.  I'm lost as to what is causing it to be null Remove-AzureADGroupMember : Cannot bind argument to parameter...

View Article


PowerShell Active Directory: last modified date for an attribute

I will explain this as an example: There are some personnel that I have access to their usernames in AD.  Now, I wanted to see when was the last time their "Mobile phone number" attribute field was...

View Article


Get-AdGroupMember | Select-Object and Get-Content | ForEach-Object

How would i get all members in a ADGroup Security and then use that list to execute further commands? I want to use the AD Security Group as a dynamic list and Not a static list from a text file....

View Article

Trying to use Get-Mailbox

I am trying to get a script that prompts the user to enter a username to search, and then returns with the name, how much storage they have used, and all the quotas set for that user. But I am having...

View Article

32Feet.Net in Powershell

Hello! First of all, I am not a coder and second I struggled with this for 2 days before asking for help :) I am trying to programmatically pair 2 Bluetooth devices with PowerShell using the 32Feet.Net...

View Article


Fetch list of AcceptMessageFrom from all Distribution Lists

Hi,I have two requirements,1. I want to fetch the list of members of AcceptMessagesOnlyFrom from all Distribution Lists in my organization.I am looking for single script which will give me these...

View Article

sample powershell script to connect multiple domains

importing a CSV file (which has domain\user & domain\group) I need to get a list of columns with server names, user ids with group membership details and for the list of groups of users in the...

View Article

Get last logon time,computer and username together with Powershell

I have a script which gets the last logon times of each computer in the domain.My script:$dcs = Get-ADComputer -Filter { OperatingSystem -NotLike '*Server*' } -Properties OperatingSystem foreach($dc in...

View Article


Convertto-CSV can't handle doubles lines in json file

I'm working on a script that pull info from VM's and places it in a json file. In case of multiple VHD files or NIC's it will put it as {<value>,<value>}.When converting the above to CSV...

View Article


Querying Terminal Server

Hello All,We have 4 domains, from each domain I am trying to extract the Terminal services records. I am able to get the details afterproviding the servers and querying each servers from the input...

View Article

Newbie PS Q: collecting Drive Info script fails

Got a legacy script, which collects info on all locally attached Volumes, only it fails on some of my computers (eg. one is a Windows 2008R2 w/PS 3.0)I've identified that 'get-command get-partition'...

View Article

Datagrid not updating color until I click the header or scroll down.

Hi guys,Looking for some help, this has been getting the better of me for a while and hoping you can help.Here is an example script showing the issue#Load required libraries Add-Type -AssemblyName...

View Article

Determining availability of Feature Updates no longer possible via...

KB4497934 and the subsequent updates seem to have disabled the ability to pull in Feature Updates programmatically."Starting with update KB4497934, we are introducing functionality that allows you to...

View Article


Cross Domain Group Nesting

I'm working in a large AD environment with a root domain with several sub-domains.  I am doing an analysis of groups with cross domain sub-groups and members.  Looking for a script that will show me...

View Article

Poswershell line chart

Hi All,I'd like to create a line chart with Powershell + Windows charting. The process would be this: I query the system date as "yy.mmmm.dd" and the system time as "hh:mm", separatedly (you'll see...

View Article


Start-Transcript threw InvalidOperationException

Got this exception as part of a script, wondering what are the chances which are causing this exception ?$logFilePath='ReleaseTranscript-10.02.02.txt'+ Start-Transcript -Path $logFilePath -append+...

View Article

How to get the process information (script location) being executed by...

We have a Hello.py which is being executed. The process that executes python script is python.exe. We are looking for a way to find the information (location) of the script being executed (path of...

View Article


ConvertTo-HTML question

HiI was pulling a list of inactive computers from AD and sending them as an email monthly. Last week I added a link (helpdesk.ourdomain.com) to the email which takes the user to directly to the asset...

View Article

Enter-PSSession: WinRM cannot process the request, Kerberos authentication...

Hi!I've configured PowerShell Remoting on the server using Enable-PSRemoting commandlet.But when I'm trying to connect to the server I'm constantly getting the following error:PS C:\Users\sergeyp>...

View Article

How to automate Print to PDF

HiI have a folder with n number of outlook message files with extension ".msg". The content of these files should be converted to PDF without altering its format using Microsoft Print to PDF option and...

View Article
Browsing all 21975 articles
Browse latest View live


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