Get-ScheduledTask
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Set-ExecutionPolicy RemoteSigned -Scope Process
ipconfig /all
Get-CimInstance -ClassName Win32_QuickFixEngineering
Test-Connection -ComputerName dc01.novatech.local
ipconfig /all
Get-ADObject -LDAPFilter '(objectCategory=computer)'
whoami
Get-ADUser -Filter 'Enabled -eq True'
Get-ADGroup -Filter *
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
cls
Test-Connection -ComputerName dc01.novatech.local
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Service -Name WinRM | Format-List *
Get-Date
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADGroupMember 'Domain Admins'
Get-ADGroupMember 'Domain Admins'
ipconfig /all
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADPrincipalGroupMembership svc_backup
Get-Date
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADOrganizationalUnit -Filter *
Get-ChildItem -Recurse C:\\Scripts\\
Remove-Item C:\\Temp\\old_log.log -Force
Get-LocalGroupMember -Group 'Administrators'
Get-ChildItem -Recurse C:\\Scripts\\
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Write-Host 'Operation terminée'
Test-NetConnection google.com
Get-LocalGroupMember -Group 'Administrators'
Disconnect-PSDrive Z
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-SmbOpenFile
Get-Date
Get-Command -Module ActiveDirectory
Get-Service -Name WinRM | Format-List *
Get-ADPrincipalGroupMembership svc_backup
Get-ADOrganizationalUnit -Filter *
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
hostname
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Date
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Import-Module ActiveDirectory
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
whoami
Import-Module ActiveDirectory
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-SmbSession
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADUser svc_backup -Properties lastLogonTimestamp
Write-Host 'Operation terminée'
Get-Date
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADGroupMember 'Domain Admins'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-WmiObject Win32_OperatingSystem
Get-ADUser -Filter 'Enabled -eq True'
Test-NetConnection google.com
Start-Sleep -Seconds 10
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Test-NetConnection google.com
Get-Service | Where-Object {.Name -like '*crypt*'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
cls
Disconnect-PSDrive Z
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Application -Newest 50
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ChildItem -Recurse C:\\Scripts\\
Get-NetIPAddress
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Date
Get-Process -Name powershell
Get-WmiObject Win32_OperatingSystem
Set-Location C:\\Temp
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Test-NetConnection google.com
Get-ADServiceAccount -Filter * -Properties *
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ADUser svc_backup -Properties lastLogonTimestamp
Import-Module ActiveDirectory
Get-ADServiceAccount -Filter * -Properties *
Get-EventLog -LogName System -Newest 50
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Date
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ADPrincipalGroupMembership svc_backup
systeminfo
Test-Connection -ComputerName dc01.novatech.local
Get-SmbOpenFile
Get-ScheduledTask
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Test-NetConnection google.com
systeminfo
Get-Service | Where-Object {.Status -eq 'Running'}
Get-NetIPAddress
Get-LocalGroupMember -Group 'Administrators'
Get-CimInstance -ClassName Win32_QuickFixEngineering
