Quantcast
Browsing all 21975 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

[Forum FAQ] How To Automatic Sign In Websites with Windows PowerShell

To sign in the websites, we need to input the username and password, then click sign in. However, in some cases, we need to do this automatically.We can achieve this in Windows PowerShell through the...

View Article


Reporting from Active Directory Omitting certain groups

I need to create a HTML report of all AD users in the DC based on username, email, description and lastlogondate. I need to create one section in the report for each of three specific groups that have...

View Article


Powershell - Get size of files listed in an array

Hi there! I'm a newbie in powershell. As you can see, maybe my problem is kinda easy but i'm getting nuts over here.I got this object, that is an arrayPS C:\scripts\CleanScan>...

View Article

enabling mailbox

How do i incorporate enable-mailbox to the code listed belowthe e-mail has to be in the format of firstname.lastname@none.com$users = Import-CSV .\blkusr.csv $Users | Foreach-Object {$UserPrincipalName...

View Article

Get-ADGroup truncates list of group members, how can we get full list of all...

Hello,I am running a simple powershell cmdlet to retrieve all members of an Active Directory domain security group then pipe it to a .csv or .txt file.  Problem is this will truncate the list of all...

View Article


Save credential and show them in textbox

Hi, i'm fresher with powershell, so i want to know if there is a way to show saved credential in the textbox when an user call the script for the second time.thanksCristian

View Article

AD LastLogon format date

I have a powershell script that extracts lastlogon across my domain.The relevant portion of script is:- $time=$currentUser.LastLogon$dt=[DateTime]::FromFileTime($time)The output is in us format I think...

View Article

Multiple MSVM classes query

Hi I am trying to get a value for a virtual machines disk drives to see if they are dynamic or static. I have worked out that I need to be looking for MSVM_VirtualHardDiskInfo = 3 for dynamic and 2 for...

View Article


comparing HashTables

I am trying to get the difference between two Hash Tables.Example:Start off with a Blank table..$Hash1  = @{}$Hash2   = @{}Foreach Statement....$Hash1.add($field_1,$field_2)Foreach...

View Article


How to add a certificate to IIS global "Server Certificates" list using...

Hi, been surfing the web for an example on how to add a certificate to the "global" IIS "Server Certificates" list using PowerShell but to no luck. I already have code in place on how to tie /...

View Article

Using Powershell to get WMI details of entire network (including

First up, I've tried doing some searching but am struggling to find a definitive answer. I need to pull back WMI data and file data from a Windows estate or Desktops/Servers. I know this is possible,...

View Article

Is there a way to speed up Get-QADUser or Get-ADUser?

Hello,  I was wondering if there was a way to speed the commands up to query faster?  My one-liner looks like:Get-ADUser -SearchBase "OU=People,DC=Domain,DC=Company,DC=Net" -Filter {Title -eq "Job...

View Article

Can I remotely failover clusters with powershell from a non clustered server?...

Hello,I'm trying to remotely administer my windows clusters and fail them over with a PowerShell Script.  The server I'm using is not a clustered server.  I've already installed the Failover Clustering...

View Article


How to convert a delimited string to an array/hash table/or something.

I have a string that I want to convert to some sort of output that allows me to address the pair either by name or id -- not knowing the correct terminology doesn't help.Sample...

View Article

What is the "file signature" of a 16-bit executable ?

What is the "file signature" of a 16-bit executable ?In other words, what do I need to know about the internals of a 16-bit executable (either a 16 bit xxx.exe or xxx.com file) to write a Powershell...

View Article


Need help with multiple filters with Get-ADUser

I have created this script and it works great.Get-ADUser -SearchBase "OU=Accounts,OU=toplevel,DC=mydomain,DC=edu” -Filter 'enabled -eq $true' -Properties * | Select-Object -Property SamAccountName,...

View Article

Setting System Time with PowerShell

How can we modify or change system time (not date) using windows powershell? I was trying to change system time by below command:-set-date -adjust "Monday, October 17, 2011 5:35:25 PM"But it throws...

View Article


DSC PSRemoting servername & permissions

I am looking to connect to a potentially random Azure cloud service name and push a DSC configuration to it.One of the provisions for the solution I'm building is to use untouched images. I know I...

View Article

Read group membership for a user object and populate every group with...

I have LON\JSmith in LON domain and DEL\JimSmith in DEL domainI would like to extract group memberships of LON\JSmith in LON domain and append matching by email (i.e. DEL\JimSmith) user object in every...

View Article

DSC capturing and using resource output

I am currently building a solution to rapidly create / destroy environments in Azure. DSC appears to be a good framework to base this on. However I am running into a few problems along the way! and...

View Article
Browsing all 21975 articles
Browse latest View live