Please note that I am only a servicedesk person - I have no elite skills, but I am trying to make this script to check the user info.
I just tried with the knowledge I have, and obviously I am doing it wrong, but I need to know how. This is how my password.bat-file looks like now:
@echo off
set /P username="Enter username:"
powershell import-module activedirectory Get-ADUser -identity "%username%" -Properties PasswordLastSet,PasswordExpired
Pause
But this only gives error which I can't make out. It seems I can't use all of these commands at once. I guess I should use | somewhere? But not sure..
Kthxbai