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