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