Scripting the Creation of Blogs & Apple Wikis

I would like to write a script to programmatically generate blogs & Wikis for the classes & teachers at our school. However I don't see any documentation on the editing of blogs on an Apple Wiki server.
Has anyone done anything similar? I tried simply copying an existing Blog, renaming it and the .plist file and restarting the wiki & web services.

Yeah, you could do that, an easy way would be use a csv file that has a column for each server and it's password. So the code would look something like this:
Import-csv c:\servers.csv | foreach {
#Create the account
$username = "user1"
$comp = [adsi] "WinNT://$($_.server)"
$user = $comp.Create("User", $username)
$user.SetPassword($_.password)
$user.SetInfo()
#Set password to never expire
$ADS_UF_DONT_EXPIRE_PASSWD = 0x10000
$user.userflags = $ADS_UF_DONT_EXPIRE_PASSWD
$user.SetInfo()
#Add the account to the local admins group
$group = [ADSI]"WinNT://$($_.server)/Administrators,group"
$group.add("WinNT://$($_.server)/$username")
Here is a good explanation of using import-csv and how to setup your csv file:
http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/import-csv.mspx

Similar Messages

  • Script the creation of Portal users in 10.1.2

    Is there an easier way to create multiple portal users in 10.1.2. I know the user is loaded into OID and I can use the ldap tools to bulk load users in OID but I think that the portal schema holds the OID references and permissions themselves. Just curious if there is a way to script creating multiple users into the Portal 10.1.2?
    Thanks

    user12002366 wrote:
    I know how to use ldapadd and etc. I was not aware that the portal database schema was synchronized based on the OID information.
    What process syncronizes the information?
    or am I confused and ldapadd will add the OID user to the Portal schema?I think ldapadd only does add users to OID and has nothing to do with adding users' meta data to the portal database.
    I also look for the info of how does the users info in the portal sync with OID's. Can this be accomplished by using the features of the Provision of OID, which is an out of the box feature? Or do we have develope our own function to achive this? Thanks.

  • Scripting Subfolder Creation on Import

    I was wondering if there was a way to script the creation of multiple subfolders (ie: Selects, Masters, Output) when importing images into lightroom?  Right now the best I can come up with is to create a template folder with all of the subfolders already created and copy that template, rename it, and then import into the new folder.  I have poked around the programming guide for LR, but nothing immediately jumped out at me.  Any ideas?

    CarlODay wrote:
    I have poked around the programming guide for LR, but nothing immediately jumped out at me.  Any ideas?
    If you're that kinda guy, consider having a look at Ottomanic Importer.
    In a nutshell: you just need to create the folders you want, then copy the files to be imported where you want them, then add (in place) to catalog.
    Rob

  • Can I script the changing of creation date, using the file name?

    Normally people are doing this in reverse, but let me paint the picture.
    I pulled 204 video files from an old HDD based JVC camera.  JVC records in .MOD format which iPhoto won't import.  I imported them into iMovie just fine, and iMovie even set the file name to clip-2007-11-04 04;42;29.mov which is great, but it now has a new creation date of whatever date I imported it.  Which then causes problem when I want the videos stored in iPhoto and sorted appropriately by creation date.
    I've used the application "A Better Finder Attributes 5" to individually edit the creation and modify, but I'm sure I don't want to do this 203 more times, as you can't just type in the date and time, you have to type in each part of the date/time, or select it on a calendar.
    I've used the application "Name Changer" to batch convert the file names to the format YYYYMMDDhhmm which would be helpful if I were going to use the terminal command touch -t, but again I don't want to have to type it in 203 more times, plus drag and drop the file into finder to populate the location.
    Now, if I were more handy with automator, or maybe some (any) scripting language this would be easy peasy.  I'd batch rename all the files to the YYYYMMDDhhmm.mov and then have a script that just took the file name, passed that to touch -t along with the file location, and a few seconds later, they would all be done!
    Anybody have any suggestions to how I can do this, and tips to what commands to use or ANY advice?  I'm more than happy to RTFM, but I have no idea which manual to read!
    Thanks

    If your file names are precisely as you have written, this script will do what you want.
    Copy the script into an AppleScript Editor document, select one or more files in a Finder window, return to the AS Editor and press Run.  Note: you will need to provide your password when the script runs.
    Make sure you have a backup of any files you are working on (try using duplicates first, perhaps). The script has no error handling.
    tell application "Finder"
              set FileList to selection
              repeat with theFile in FileList
                        set fileName to name of theFile
                        set filePath to quoted form of (POSIX path of (theFile as alias))
                        set crYear to text 6 thru 9 of fileName
                        set crMonth to text 11 thru 12 of fileName
                        set crDay to text 14 thru 15 of fileName
                        set crHour to text 17 thru 18 of fileName
                        set crMins to text 20 thru 21 of fileName
                        set crDate to crYear & crMonth & crDay & crHour & crMins
                        set shellString to "touch -t " & crDate & " " & filePath
      do shell script shellString with administrator privileges
              end repeat
    end tell

  • Can a Button call a java script and then proceed with the creation

    Hi all,
    I have a simple APEX form on a table,
    with simple function as create and apply changes,
    some items of the form are computed by a "Computation"
    I need the create button to show the computed values, before move to the next page, then proceed with the creation ( submission)
    I have tried to show the values by a java script, but after clicking the button OK of the javascript msg, no submission performed ,
    details:
    the java script is called in the URL of the Button,
    it only contains a alert statement
    is there a way to let the button do that
    or may be the case could be solved by another idea!!!
    rgrds,

    Hi Varad,
    It is Before header of course. I forgot to mention this.
    Yes, you are right Varad, I have read again the question and seems original request was to show Computation that is done in After Submit, more javascript is required of course.
    One possibility is to create On Demand process called COMPUTEITEM where you compute your item, and in the end of on demand process it prints it
    htp.p(:P1_X)
    Then put in HTML header of your page
    <script language="JavaScript" type="text/javascript">
    function setShowItemSub(pThis){
       var l_This   = $x(pThis);
       var ajaxRequest = new htmldb_Get(null, $v('pFlowId'),  'APPLICATION_PROCESS=COMPUTEITEM', $v('pFlowStepId'));
       ajaxRequest.add($x(l_This).id, $v(l_This));
       var gReturn = ajaxRequest.get();
       alert(gReturn);
       ajaxRequest = null;
      doSubmit('aa');
    </script>And in Button URL textarea put:
    javascript:setShowItemSub('P1_X');
    Then no need in After Submit process anymore
    I have put this now in http://apex6.revion.com/pls/apex/f?p=225:1
    COMPUTEITEM On demand process is :
    :P1_X := :P1_X || ' Added this trail';
    htp.p(:P1_X);Of course, all this should be modified accordingly
    Regards,
    Oleg

  • When I complete my information about the creation of the apple Id, the screen show a message I have to find the support of Itunes. Help me

    When I complete my information about the creation of the apple Id, the screen show a message I have to find the support of Itunes. Help me

    Have you done a Disk Repair and a Disk Permissions Repair?
    If that doesn't resolve the problem I would suggest calling customer support about this issue as it is most likely on their (Apple's) end that the problem exists. 

  • Not receiving all email to primary Apple ID address since the creation of an alias

    Not receiving all email to primary Apple ID address since the creation of an alias

    All email sent to your iCloud email alias address should be received in your iCloud inbox.  If email is being addressed to your alias when you think it should be addressed to your primary address it may be because the sender replied to an email you inadvertently sent from your alias address.  You might want to confirm that your primary address is set as your default for sending mail.  See "set default address to send from" here: http://help.apple.com/icloud/#/mm6b1a490a.

  • How-to: add instructions to the Apple Wiki login dialog

    Here's an easy way to add some text to your wiki login dialog. I had to do this because at the school where I work, we have several sets of login credentials, and this allows us to instruct people what account they should use. You could really use it for anything though.
    Add this code to screen.css inside your theme folder:
    #logindialogform table thead tr td {
    padding-right:1px;
    #logindialogform table thead tr td:after {
    display: block;
    width: 235px;
    text-align: left;
    margin-top: 6px;
    font-size: 8pt;
    color: green;
    content: "This text will appear in your login dialog.";
    You can customize it to your heart's content. Works in Safari 3 & Firefox 3. There's probably a more semantically correct way to do this with xslt, but this works for me. This is a sample of what it looks like when you're done:
    http://chadvonnau.com/images/apple-wiki-add-login-instructions.png

    Hi,
    Based on my knowledge, Exchange has no built-in function to customize "Your password has expired and you need to change it before you sign in to Outlook Web App" notification text. Your understanding will be appreciated.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Blog or Wiki applications built using APEX

    I have been tasked with finding a ready-made solution that we can use as a developers' scrapbook where development team members can store useful hints/tips, code samples, coding standards etc etc
    An APEX solution would be best (something similar to Carl Backstrom's APEX demo app, maybe) since it's familiar territory and it would keep the sys admins happy - but I'm open to other solutions.
    A non-APEX solution would have to be Windows based, with no server-side requirements.
    I quite like TiddlyWiki (http://www.tiddlywiki.com) but it's not multi-user. There is a 'groupauthoring' plugin for it (http://tiddlywiki.bidix.info/) but it requires use of Ruby scripts on the server.
    Online blogs like blogspot would be great, but The Business wants to keep everything in-house.
    So, has anyone built a blog or wiki-type application using APEX that they would be willing to release 'into the wild'? Or is there another solution that I've missed ...
    Cheers
    Richard

    Hello,
    Here is an example of the beginnings of the wiki application, to edit add a subject just login it uses open credentials,
    http://apex.oracle.com/pls/otn/f?p=2757:709
    the code as it stands here can be downloaded here (it differs slightly from the demo version as i've actually done some dev work on it)
    http://oracle-apex.svn.sourceforge.net/viewvc/oracle-apex/wiki/
    Feel free to download add critic etc, I defiantly am still looking for someone that knows regex really well it would help greatly speed development along.
    There will be movement on this and the forum application as I finally have a bit of time to work on these again, of course anyone that wants to help is greatly appreciated.
    Carl

  • Scripting the deletion of workstation

    Is there a way to automate the deletion of workstations from the ZAM database using a script. The toolkit use to have a command line utility that would delete a workstation from the database.
    Thanks.

    saskmcross said on 6/4/2008,
    >Is there a way to automate the deletion of workstations from the ZAM
    >database using a script. The toolkit use to have a command line
    >utility that would delete a workstation from the database.
    Last I knew, most of the utilities had been pulled and there are no plans
    to re-release these tools either.
    Jared Jennings - Data Technique, Inc.
    Novell Support Forums Sysop
    My Blog and Wiki with Tips, Tricks, and Tutorials
    http://jaredjennings.org

  • Backup blog and wiki

    Hi, we just installed os x server 10.5.8 on a G5 this week.
    everything is how we want it to be so i made a carbon copy clone of the hard drive in case something corrupts our system. now we use Retrospect 6 to back up all our files and i can automate the backups and just need to pop in a dvd every once in a while to burn the data. but now since the wiki and blog is something that will change everyday on our server we want to back up that as well! but what files or folders must i archive? is it only the /library/webserver that i back up or are there other important files to check???
    thanks

    You should backup these two directories:
    /Library/Collaboration/
    /Library/Application Support/Apple/Wikiserver
    Of course, if you've changed the default data store for wiki data from /Library/Collaboration, you'll want to back that up instead.

  • How to Script the "Upgrade Database" button in Configuration manager?

    Hi
    We want to automate the cloning process of the test env. to the dev. env. only problem is that the DBA is testing newer CU on dev, which means that we have to push the "Upgrade Database" button in configuration manager each time... any good solution
    to this?
    in short:
    How to Script the "Upgrade Database" button in Configuration manager?
    thanks!
    MM

    MM, is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Using unattend install files to automate the creation of Win7 pooled VDIs in 2012 remote desktop services

    Hi All,
    I have a problem that I have been working on for the past week and hoping someone can provide the missing link for me.
    Background
    We currently have a 2008 "VDI" environment with both personal and pooled Windows 7 desktops deployed to thin clients. We have just set up our first 2012 Hyper-V server and plan to deploy pooled and personal VDIs under 2012. I have been working
    on the process and successfully created both pooled and personal Windows 7 desktops using the Remote Desktop Services and creating the collections.
    I created the golden image and sysprep'd it (/Generalize /OOBE /Shutdown). During the creation of the Pool collection I manually inputted the Virtual settings (i.e. the OU, etc). I notice there is an option to supply an unattend.xml file with the answers.
    We are deploying the pool into a computer lab in the school for the students to use. I want the pool to revert to the pristine state after the student logs off.
    Problem
    When the user logs into the pooled desktop I notice that the activation for the Windows license has not been run. I am trying to use the unattend file to activate the license before the first log-in. Using the Windows System Image Maker I've install our
    volume license key, but it does not activate. The only option I have to activate it is to run a synchronous command during first login. This can only be inserted in the OOBE phase. When the user logs in the license activates, but when they log out,
    the machine reverts to the pristine state.
    I confess I'm  newbie to unattend installs but I've been reading the docs on line trying to figure out how to change this behavior. I'm also assuming this won't be a problem with the personal desktops pools.
    Any help is greatly appreciated.

    Hi,
    Please make sure to following guide like this link to deploy the virtual desktops
    Windows 8 / Windows Server 2012: Pooled Virtual Desktop Infrastructure
    http://blogs.technet.com/b/askperf/archive/2012/10/31/windows-8-windows-server-2012-pooled-virtual-desktop-infrastructure.aspx
    Regarding to activation, see introduction in this link:
    http://technet.microsoft.com/en-us/library/dn645522.aspx
    Which did you use? for KMS as an example, you have to activate the master\template VM with the Windows version specific KMS Key and make sure that your KMS Server is auto discoverable.
    The snapshot on the automatically created pooled collection VM is taken before KMS activation is initiated from the guest OS. So the KMS activation would take place only after user logs on. once the rollback is enabled, the pooled VM will
    rollback to clean state and may perform the windows activation again when any user logs on to the VM again.
    And you mentioned that you're using WSIM and installed Volume License Key, (I suppose you mean that you've typed the key in the "Product Key Selection" in WSIM), but as I know, we should leave the product key blank if you are using KMS host
    for activation.  
    Yolanda Zhu
    TechNet Community Support

  • Automating the creation of a HDinsight cluster

    Hi,
    I am trying to automate the creation of a HDinsight cluster using Azure Automation to execute a powershell script (the script from the automation gallery). When I try and run this (even without populating any defaults), it errors with the following error:
    "Runbook definition is invalid. In a Windows PowerShell Workflow, parameter defaults may only be simple value types (such as integers) and strings. In addition, the type of the default value must match the type of the parameter."
    The script I am trying to run is:
    <#
     This PowerShell script was automatically converted to PowerShell Workflow so it can be run as a runbook.
     Specific changes that have been made are marked with a comment starting with “Converter:”
    #>
    <#
    .SYNOPSIS
      Creates a cluster with specified configuration.
    .DESCRIPTION
      Creates a HDInsight cluster configured with one storage account and default metastores. If storage account or container are not specified they are created
      automatically under the same name as the one provided for cluster. If ClusterSize is not specified it defaults to create small cluster with 2 nodes.
      User is prompted for credentials to use to provision the cluster.
      During the provisioning operation which usually takes around 15 minutes the script monitors status and reports when cluster is transitioning through the
      provisioning states.
    .EXAMPLE
      .\New-HDInsightCluster.ps1 -Cluster "MyClusterName" -Location "North Europe"
      .\New-HDInsightCluster.ps1 -Cluster "MyClusterName" -Location "North Europe"  `
          -DefaultStorageAccount mystorage -DefaultStorageContainer myContainer `
          -ClusterSizeInNodes 4
    #>
    workflow New-HDInsightCluster99 {
     param (
         # Cluster dns name to create
         [Parameter(Mandatory = $true)]
         [String]$Cluster,
         # Location
         [Parameter(Mandatory = $true)]
         [String]$Location = "North Europe",
         # Blob storage account that new cluster will be connected to
         [Parameter(Mandatory = $false)]
         [String]$DefaultStorageAccount = "tavidon",
         # Blob storage container that new cluster will use by default
         [Parameter(Mandatory = $false)]
         [String]$DefaultStorageContainer = "patientdata",
         # Number of data nodes that will be provisioned in the new cluster
         [Parameter(Mandatory = $false)]
         [Int32]$ClusterSizeInNodes = 2,
         # Credentials to be used for the new cluster
         [Parameter(Mandatory = $false)]
         [PSCredential]$Credential = $null
     # Converter: Wrapping initial script in an InlineScript activity, and passing any parameters for use within the InlineScript
     # Converter: If you want this InlineScript to execute on another host rather than the Automation worker, simply add some combination of -PSComputerName, -PSCredential, -PSConnectionURI, or other workflow common parameters as parameters of
    the InlineScript
     inlineScript {
      $Cluster = $using:Cluster
      $Location = $using:Location
      $DefaultStorageAccount = $using:DefaultStorageAccount
      $DefaultStorageContainer = $using:DefaultStorageContainer
      $ClusterSizeInNodes = $using:ClusterSizeInNodes
      $Credential = $using:Credential
      # The script has been tested on Powershell 3.0
      Set-StrictMode -Version 3
      # Following modifies the Write-Verbose behavior to turn the messages on globally for this session
      $VerbosePreference = "Continue"
      # Check if Windows Azure Powershell is avaiable
      if ((Get-Module -ListAvailable Azure) -eq $null)
          throw "Windows Azure Powershell not found! Please make sure to install them from 
      # Create storage account and container if not specified
      if ($DefaultStorageAccount -eq "") {
          $DefaultStorageAccount = $Cluster.ToLowerInvariant()
          # Check if account already exists then use it
          $storageAccount = Get-AzureStorageAccount -StorageAccountName $DefaultStorageAccount -ErrorAction SilentlyContinue
          if ($storageAccount -eq $null) {
              Write-Verbose "Creating new storage account $DefaultStorageAccount."
              $storageAccount = New-AzureStorageAccount –StorageAccountName $DefaultStorageAccount -Location $Location
          } else {
              Write-Verbose "Using existing storage account $DefaultStorageAccount."
      # Check if container already exists then use it
      if ($DefaultStorageContainer -eq "") {
          $storageContext = New-AzureStorageContext –StorageAccountName $DefaultStorageAccount -StorageAccountKey (Get-AzureStorageKey $DefaultStorageAccount).Primary
          $DefaultStorageContainer = $DefaultStorageAccount
          $storageContainer = Get-AzureStorageContainer -Name $DefaultStorageContainer -Context $storageContext -ErrorAction SilentlyContinue
          if ($storageContainer -eq $null) {
              Write-Verbose "Creating new storage container $DefaultStorageContainer."
              $storageContainer = New-AzureStorageContainer -Name $DefaultStorageContainer -Context $storageContext
          } else {
              Write-Verbose "Using existing storage container $DefaultStorageContainer."
      if ($Credential -eq $null) {
          # Get user credentials to use when provisioning the cluster.
          Write-Verbose "Prompt user for administrator credentials to use when provisioning the cluster."
          $Credential = Get-Credential
          Write-Verbose "Administrator credentials captured.  Use these credentials to login to the cluster when the script is complete."
      # Initiate cluster provisioning
      $storage = Get-AzureStorageAccount $DefaultStorageAccount
      New-AzureHDInsightCluster -Name $Cluster -Location $Location `
            -DefaultStorageAccountName ($storage.StorageAccountName + ".blob.core.windows.net") `
            -DefaultStorageAccountKey (Get-AzureStorageKey $DefaultStorageAccount).Primary `
            -DefaultStorageContainerName $DefaultStorageContainer `
            -Credential $Credential `
            -ClusterSizeInNodes $ClusterSizeInNodes
    Many thanks
    Brett

    Hi,
    it appears that [PSCredential]$Credential = $null is not correct, i to get the same
    error, let me check further on it and revert back to you.
    Best,
    Amar

  • Can I automate the creation of a cluster in LabView using the data structure created in an autogenerated .CSV, C header, or XML file?

    Can I automate the creation of a cluster in LabView using the data structure created in an auto generated .CSV, C header, or XML file?  I'm trying to take the data structure defined in one or more of those files listed and have LabView automatically create a cluster with identical structure and data types.  (Ideally, I would like to do this with a C header file only.)  Basically, I'm trying to avoid having to create the cluster by hand, as the number of cluster elements could be very large. I've looked into EasyXML and contacted the rep for the add-on.  Unfortunately, this capability has not been created yet.  Has anyone done something like this before? Thanks in advance for the help.  
    Message Edited by PhilipJoeP on 04-29-2009 04:54 PM
    Solved!
    Go to Solution.

    smercurio_fc wrote:
    Is this something you're trying to do at runtime? Clusters are fixed data structures so you can't change them programmatically. Or, are you just trying to create some typedef cluster controls so that you can use them for coding? What would your clusters basically look like? Perhaps another way of holding the information like an array of variants?
    You can try LabVIEW scripting, though be aware that this is not supported by NI. 
     Wow!  Thanks for the quick response!  We would use this cluster as a fixed data structure.  No need to change the structure during runtime.  The cluster would be a cluster of clusters with multiple levels.  There would be not pattern as to how deep these levels would go, or how many elements would be in each.   Here is the application.  I would like to be able to autocode a Simulink model file into a DLL.  The model DLL would accept a Simulink bus object of a certain data structure (bus of buses), pick out which elements of the bus is needed for the model calculation, and then pass the bus object.  I then will take the DLL file and use the DLL VI block to pass a cluster into the DLL block (with identical structure as the bus in Simulink).  To save time, I would like to auto generate the C header file using Simulink to define the bus structure and then have LabView read that header file and create the cluster automatically.   Right now I can do everything but the auto creation of the cluster.  I can manually build the cluster to match the Simulink model bus structure and it runs fine.  But this is only for an example model with a small structure.  Need to make the cluster creation automated so it can handle large structures with minimal brute force. Thanks!  

Maybe you are looking for

  • Can't connect to computer on network but can share screen

    I've got a MBP 2.4 that I can't connect to another MBP or a Mac Pro on our home network (Airport Extreme router). I can share the screen but I can't connect. The other computers can connect and share into the 2.4. I can't figure this out since all of

  • End-to-end monitoring error!!!!!!

    hi. i have a problem. i trying to start a new selection in end-to-end monitoring, but i have an error with JNET: java.lang.NullPointerException. can anybody help me to resolve it please?? another question is: What is JNET? is the fist time i configur

  • How to delete a template on WLC

    Hi, When I add a template in a config Group, this template is send on the WLC. When I delete a template in a config Group, the config is not delete on the WLC. How to delete the config when I delete a template ? PS : I'm sorry for my bad english... J

  • Problem with E71 & WLAN

     I have E71 nokia phone. my problem is, the phone keeps asking me about the password of any access point i have installed. for ex. , i want to connect to check my mails, it asks me about the preferable network, i select one of the defined networks, t

  • Sessions In Oracle

    Hi, Can I get good documentation links regarding Oracle Sessions. I searched in Internet and found some, but cant able to understand them quite well. Thanks Edited by: user10679113 on Jan 5, 2009 2:37 PM