Jump to content

MichalisCorsa

Members
  • Posts

    49
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    MichalisCorsa got a reaction from nkspeed in Ζητω 8088 - 8086   
    Πρέπει να έχω κάπου μια 8086 καταχωνιασμένη με 1mb ram μάλιστα. Το επόμενο σ/κ θα κάνω μια επιδρομή στην αποθήκη και θα σου πώ.

    Τον Hyundai 286 που έχω πάντως δεν το δίνω, και είναι κομπλέ με 80mb IBM δίσκο, DOS 6.22 και ΑΤ&Τ Framework III
  2. Like
    MichalisCorsa reacted to kavag in Failover clustering PowerShell   
    Επειδή βλέπω πως σας αρέσουν αυτά έχω να παραθέσω μερικά URLs.
     
    Ben Armstrong's Big Build Script @ MVP Summit 2015
     
    Στο τελευταίο MVP Summit (2015), o Ben Armstrong, Principal Program Manager στον Hyper-V, μας παρουσίασε όλες τις νέες δυνατότητες του Hyper-V που έρχεται στον Windows Server 2016, μέσω αυτού του Script που φτιάχνει .... ένα ολόκληρο DataCenter ! Η παρουσίαση είχε τίτλο "Hold My Beer while i build the Datacenter"
     
    Θα πάρετε πολλές ιδέες σχετικά με την διαχείριση των images, NanoServer, Containers και θα δείτε functions που αυτοματοποιούν κάποιες εργασίες που ο Παναγιώτης αφήνει αυτόν που τρέχει το script, να κάνει manual, δηλαδή Reboot, AD Join κ.λ.π.
     
    Θα ποστάρω και μιά δική μου έκδοση του Script που είναι μιά striped down version ....
  3. Like
    MichalisCorsa reacted to nkspeed in Failover clustering PowerShell   
    Φοβερό post σχετικά με τη διαχείριση του cluster με powershell.
    http://powershelldistrict.com/failover-clustering-powershell/
     
     
    How to get all the nodes of a cluster using PowerShell?
    Import-Module FailoverCluster -Force $Cluster = get-cluster -name $env:computername How to get All the VM’s present on a node from HyperV failover cluster with powershell?
    $Nodes = Get-ClusterNode -Cluster $Cluster.Name write-log "Cluster $($Cluster.Name) contains $($Nodes.count) nodes." foreach ($node in $nodes){ Write-Log "Cluster Node $($Cluster.Name) contains the following VMs" $Vms = get-vm -ComputerName $Node.Name Foreach ($Vm in $Vms){ write-Log "$Vm.Name" } } How to get the VM state on a failover cluster using powershell
    write-log "Starting state changes operations on node: $($node.Name)" Foreach ($vm in $VMs){ if ($vm.Name -like $DataServerName){ write-log "The DATA server $($vm.Name) is skipped until all machines have been saved or are stopped." }else{ switch ($vm.state){ "Running"{ write-log "Saving VM $($VM.name) state." try{ Save-VM -ComputerName $Node.Name -Name $vm.name -ErrorAction Stop write-log "--> Successfully saved" }catch{ write-log $_ } } "Stopped"{ write-log "The VM $($VM.name) is already in stoped state. No action done." "Saved"{ write-log "The VM $($VM.name) is already in saved state." } default{ Write-log "The current state $($vm.state) could not be defined. Skipping VM." continue } }#End switch }#End If *data* }#End foreach VM Failover clustering: How to stop a cluster resource (the Quorum) using PowerShell?
    ##Quorum operations write-log "Starting Quorum operations" $Quorum = Get-ClusterQuorum -ErrorAction stop write-log "Attempting to set Quorum $($Quorum.QuorumResource) offline." Stop-ClusterResource -Name $Quorum.QuorumResource.name Failover clustering: How to set Clustered share volumes in maintenance mode using Powershel
    ##Cluster shared volume operations write-log "Starting operations: Setting cluster share volumes into maintenance mode." $CSVs = Get-ClusterSharedVolume -Cluster $Cluster write-log "There are $($CSVs.count) clustershared volumes identified on $($Cluster)." foreach ($csv in $CSVs){ try{ if (!($csv.name -eq $Quorum.QuorumResource.name)){ Suspend-ClusterResource -Name $csv.name -force -ErrorAction stop | Out-Null write-log "Successfully set clusterSharedVolume $($csv.name) into maintenance mode." } }catch{ write-log $_ } } Failover clustering: How to stop a cluster resource using powershell?
    ##Cluster operations $ClusterNodeToshutdown = Get-ClusterNode | where {$_.name -ne $env:COMPUTERNAME} write-log "Attempting to stop the cluster $($Cluster.Name)." Stop-Cluster -Cluster $Cluster.Name -Force -ErrorAction stop write-log "The cluster resource $($Cluster.Name) has been successfully stopped." Failover clustering: How to stop a cluster node using powershell?
    $ClusterNodeToshutdown = Get-ClusterNode | where {$_.name -ne $env:COMPUTERNAME} ##Shutting down other cluster Node write-log "Attempting to shutdown the cluster node $($ClusterNodeToshutdown.Name)." Stop-Computer -ComputerName $ClusterNodeToshutdown.name -Force ΝΚ
  4. Like
    MichalisCorsa got a reaction from Blackman in Εισαγωγή πολλαπλών επαφών σε ένα OU στο Active Directory με CSVDE?   
    Αν το CSV αρχείο είναι όπως στην εικόνα το μόνο πρόβλημα που βλέπω είναι τα quotes στο πεδίο του distinguished name (DN).

    Θα έπρεπε να είναι όπως παρακάτω:

    objectclass,DN,givenname,sn,mail
    contact,"CN=Bob Dylan,OU=Mail Contacts,DC=Contoso,DC=local",Bob,Dylan,[email protected]

    Αλλιώς βλέπει το κάθε κόμμα σαν καινούργιο πεδίο.

    Το CSVDE το τρέχεις επάνω στον domain controller; Στο output που έχεις βάλει δεν βλέπω να έχεις ορίσει server που θα συνδεθει για να κάνει το import.
×
×
  • Create New...