• Hello Leos,

    Your point 2. seems useless to me because you can use one of their machine to do that task and because you are looking at the server later on your list, so you are doing the same job twice. A majority of the time, they have a configuration of one server that does everything, a switch that is most-likely not configured and non-manageable and the ISP router. SMB are rarely investing right of the bat in IT equipment.

    Like Michael said, take the information you really need. Having all the hardware and software information will serve what purpose? If I were to take over a company IT department, I'd ask my customer if he has other paid support like Xerox. That helps to draw a line on what's your responsibility.

     

    Steven

    0
  • Am I ready to work from home? Yes I am. However, some companies like VFX are bound to strict laws that are really hard to match with working remotely such has not having internet on the device itself, how to access data internally that are highly sensitive and so on.

     

    I think what we are facing is just the tippity top of the iceberg. Yes you have planned the working remotely part, but what about DR? Compromised user's network? You guys have way more experience than I do, but my first though was: what about the network security? This changed the game for us on another level.

    0
  • May I ask, why would you have machines with the same SID in your network ? I am curious because I have never experienced that so I do not know the real impact that would cause.

    0
  • Hello Folks,

    Hope you guys had an amazing holidays, happy new year !

     

    On another note, I am looking towards certifications for Azure. I have basics knowledge of Cloud computing and I want to get certified and get more knowledge. I would like to have some insights as if it's a good projection or if I should change some of them. My plan is to complete them within 2020 in the following order. Also, is the Microsoft Learn enough to prepare for those certif or should I also plan for more online/in-person content ?

    1. Microsoft Azure Fundamentals

    2. Microsoft Azure Administrator

    3. Configuring and Operating a Hybrid Cloud with Microsoft Azure Stack

     

    Cheers,

    Steven

    0
  • OH ! Now I get it. I thought about it too but I wasn't sure. I think I will do it eventually if I do use it more often since you have so few words to name your function. Thanks though, it's a valid point.

    0
  • @MikeJ: Thanks for the advise. I did the modification, it makes more sens. I do added more login type as I face new ones. Yes it may takes triple the time, but just today, I had to create 6 new user, used the script and worked like a charm !

    @PowerMe! : I am not sure to understand you " I tend not use the “xx-yyy” as function names. " I checked my functions and they are all verb-noun.

    0
  • Thanks a lot for sharing your train of thought on this issue and how you would tackle it. It does help to have other point of view.

    0
  • Hello folks,

     

    So multiple error on my part. First one is sAMAccount parameter is wrong, it should be sAMAccountName. Also, you cannot select special characters in the parameter, therefore my structure was not right (($net + '' + $login)).

     

    Thanks for reviewing.

    Steven

    0
  • Hello Leos, when I saw I respond I knew I had forgotten to add the important part haha.CSV Attached. It is only in a test mode at the moment. Parameter from CSV can be changed also.

    Goal: Create user with a CSV Template to any given AD.

    Reason: I want to have a simple template that can be carried over and not dependant to human parameters for the most part.

     

    Cheers,

    Steven

     

    0
  • Hello Folks,

    I have recently put a script together and it is the first time is it giving me such headaches. I have tried to print out each element to confirm that I was able to get the info properly.

    However, when I do run the New-User, I get an error :

    New-ADUser : The name provided is not a properly formed account name
    At line:1 char:

     

    I am not sure as of why I get that. Knowing when I print out $Name, it shows the proper format and everything is correct. Am I missing something ?

     

    # FUNCTIONS
    Function Find-CSVUsers($fileName){
    [CmdletBinding()]
    $File = Get-ChildItem -Path $env:USERPROFILE -Name "$fileName.csv" -Recurse
    $File = $env:USERPROFILE + '' + $File
    Import-CSV $File
    }
    Function Get-SamAccountName()
    {
    [CmdletBinding()]
    param
    (
    [Parameter(Mandatory = $true, Position = 0)]
    [string]$firstName,

    [Parameter(Mandatory = $true, Position = 1)]
    [string]$lastname,

    [Parameter(Mandatory = $true, Position = 2)]
    [ValidateSet('CompanyA', 'CompanyB', 'CompanyC')]
    [string]$company
    )

    switch ($company)
    {
    "CompanyA"
    {
    return ("$($firstName.Substring(0,1))$($lastname)").ToLower()
    }

    "CompanyB"
    {
    return ("$($firstName).$($lastname)").ToLower()
    }

    "CompanyC"
    {
    return ("$($firstName)-$($lastname.Substring(0, 1))").ToLower()
    }
    }

    }

    Function New-Users($list){
    [CmdletBinding()]
    #Variable
    $domainInfo = Get-ADDomain
    $dn = $domainInfo.DNSRoot
    $net = $domainInfo.NetBIOSName
    $path = Read-Host "Which OU should we place created users?"
    $uPath = (Get-ADOrganizationalUnit -Filter "Name -like '*$path*'").DistinguishedName
    $Pass = Read-Host 'Enter generic password'
    $loginFormat = Read-Host 'Select the format
    a) jdoe
    b) john.doe
    c) john-d

    Enter your selection'
    $Password = (ConvertTo-SecureString -AsPlainText $Pass -Force)
    $TextInfo = (Get-Culture).TextInfo

    For($i = 0; $i -lt $list.count; $i++){
    $Name = $TextInfo.ToTitleCase($list.GivenName[$i] + ' ' + $list.surname[$i])
    $login = Get-SamAccountName -FirstName $list.GivenName[$i] -LastName $list.Surname[$i] -Company ('Company' + $loginFormat)

    New-ADUser -givenName $list.givenName[$i] -surname $list.surname[$i] -name $Name -displayName $Name `
    -userPrincipalName ($login + '@' + $dn) -sAMAccount ($net + '' + $login) `
    -AccountPassword $Password -ChangePasswordAtLogon:$true -Enabled:$true -Path "$uPath"
    }
    }

    # MODULES

    #   BEGIN
    $fileName = "users"
    $list = Find-CSVUsers($fileName)

    New-Users($list)
    #   END

    0
  • My approach would be

    1. How often would I need to update the image ?
    2. How often would I need to push image on computer ?

    Also, it all comes down to what is available to you. You can use a share folder for the OS you want to use and build up two WDS and MDT server, or have only one in your main office with a bandwidth cap for those resource.

     

    Cheers,

    Steven

    0
  • That is actually what I was looking for. Thanks a lot. May I use it with you permission in my script (I can share it all) ? I have to admit, I am not familiar with using Switch in PowerShell yet.

    For those who asked themselves why would I want to do that? The reason is simple, I want to avoid human mistake when you are doing a repetitive task, it is easy to miss or do typos.

    0
  • Hello Folks,

     

    I am looking to format the login name for user creation through PowerShell. Since I may use this script for other company with a different sAMAccount, UserPrincipalName format, I would like to add that part to my script.

    For instance, have John Doe to whatever the person in charge decide.

    1. jdoe
    2. john.doe
    3. john-d

     

    I am unsure if a regex is the go-to or if I just should 'hardcode' it.

     

    Cheers,

    Steven

    0
  • 0
  • Steven posted a new activity comment 3 months, 1 week ago

    I would be really curious to see it implemented in companies. Knowing that LibreOffice is getting better, that would be something to look forward in the next year to come.

    0
  • Hello,

     

    Thanks Paolo for the suggestion. I think that the very next thing I will try.

     

    I prevent startup programs and small stuff here and there. We will see. Maybe the user is to sensitive to 'slowness'.

     

    Cheers,

    Steven

    0
  • Hello folks,

    Thanks for the answers.

    I will ask the users more detail today. It is something that has been reported to me yesterday with no much more info. From my understanding, it takes several minutes for the login to proceed when they have entered their credentials.

    I will also go through the event logs when they will attempt to login - to see from the AD perspective.

     

    My first thought was what you pointed Michael, I will give it a go too. Hence why I wanted to make sure that DNS name and Computer name could cause issue.

     

    Cheers,

    Steven

    0
  • Hello Folks,

    I am seeking some help from you and your experience. I need to point out that I haven't done the configuration, I am just facing what's been there fore years now.

    Issue: Computer is really slow to authenticate - could be up to 15 minutes before login.

    I know, it is really vague. So far, we've done some tweeking here and there, nothing works.

    I decided to look through DNS and Active Directory. The machine that is really slow to authenticate has a different Computer name than its DNS name on Active Directory Object. From there, I opened up DNS and I saw lots and lots of object with different names tag to the same IP Address - different time stamp.

    From my understanding, it should not affect the authentication since it is properly seen by the object. Am I wrong ?

    Cheers,
    Steven

    0
  • I am really curious to see how the market and Microsoft are going to handle that. I think the year 2020 is going to be hard on IT organization and creativity will be a must have. I do see Linux taking a greater market share on computer's O.S. in the next year to come.

    0
  • Michael, I understand your point, however changing a Kodak and changing a 10x10 meter machine (this is just an example) isn't the same. Swapping an older camera for a newer one won't cost you millions.

    I do agree that you have competition. However, the market is completely different from what it was back in 2010. The world is going faster then ever, not for the best though. Updating hardware and software does not guarantee success. Keeping really old stuff neither. There is a in-between. On my side, I rather have my team members able to use almost the full potential of an equipment rather than having what, 5-10% knowledge ?

    Like I said, I am all for change, but it has to be planned.

    0
  • Load More